using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class ICCreditInstantMap : EntityTypeConfiguration<ICCreditInstant>
    {
        public ICCreditInstantMap()
        {
            // Primary Key
            this.HasKey(t => t.FInterID);

            // Properties
            // Table & Column Mappings
            this.ToTable("ICCreditInstant");
            this.Property(t => t.FInterID).HasColumnName("FInterID");
            this.Property(t => t.FCreditClass).HasColumnName("FCreditClass");
            this.Property(t => t.FItemID).HasColumnName("FItemID");
            this.Property(t => t.FGroupID).HasColumnName("FGroupID");
            this.Property(t => t.FStatus).HasColumnName("FStatus");
            this.Property(t => t.FMainAmtPara1).HasColumnName("FMainAmtPara1");
            this.Property(t => t.FMainAmtPara2).HasColumnName("FMainAmtPara2");
            this.Property(t => t.FMainAmtPara3).HasColumnName("FMainAmtPara3");
            this.Property(t => t.FMainDatePara1).HasColumnName("FMainDatePara1");
            this.Property(t => t.FMainDatePara2).HasColumnName("FMainDatePara2");
            this.Property(t => t.FMainAmtPara0).HasColumnName("FMainAmtPara0");
        }
    }
}
